      //<![CDATA[
      /* begin Page */
jQuery(function(){jQuery('#ospage-background-glare').css('zoom',1)});

// css hacks
(function($) {
    // fix ie blinking
    var m = document.uniqueID && document.compatMode && !window.XMLHttpRequest && document.execCommand;
    try { if (!!m) { m('BackgroundImageCache', false, true); } }
    catch (oh) { };
    // css helper
    var data = [
        {str:navigator.userAgent,sub:'Chrome',ver:'Chrome',name:'chrome'},
        {str:navigator.vendor,sub:'Apple',ver:'Version',name:'safari'},
        {prop:window.opera,ver:'Opera',name:'opera'},
        {str:navigator.userAgent,sub:'Firefox',ver:'Firefox',name:'firefox'},
        {str:navigator.userAgent,sub:'MSIE',ver:'MSIE',name:'ie'}];
    for (var n=0;n<data.length;n++)	{
        if ((data[n].str && (data[n].str.indexOf(data[n].sub) != -1)) || data[n].prop) {
            var v = function(s){var i=s.indexOf(data[n].ver);return (i!=-1)?parseInt(s.substring(i+data[n].ver.length+1)):'';};
            $('html').addClass(data[n].name+' '+data[n].name+v(navigator.userAgent) || v(navigator.appVersion)); break;			
        }
    }
})(jQuery);

var _artStyleUrlCached = null;
function artGetStyleUrl() {
    if (null == _artStyleUrlCached) {
        var ns;
        _artStyleUrlCached = '';
        ns = jQuery('link');
        for (var i = 0; i < ns.length; i++) {
            var l = ns[i].href;
            if (l && /style\.ie6\.css(\?.*)?$/.test(l))
                return _artStyleUrlCached = l.replace(/style\.ie6\.css(\?.*)?$/, '');
        }
        ns = jQuery('style');
        for (var i = 0; i < ns.length; i++) {
            var matches = new RegExp('import\\s+"([^"]+\\/)style\\.ie6\\.css"').exec(ns[i].html());
            if (null != matches && matches.length > 0)
                return _artStyleUrlCached = matches[1];
        }
    }
    return _artStyleUrlCached;
}

function artFixPNG(element) {
    if (jQuery.browser.msie && parseInt(jQuery.browser.version) < 7) {
		var src;
		if (element.tagName == 'IMG') {
			if (/\.png$/.test(element.src)) {
				src = element.src;
				element.src = artGetStyleUrl() + 'http://img860.imageshack.us/img860/2821/spacerrfn.gif';
			}
		}
		else {
			src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);
			if (src) {
				src = src[1];
				element.runtimeStyle.backgroundImage = 'none';
			}
		}
		if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "')";
	}
}

jQuery(function() {
    jQuery.each(jQuery('ul.oshmenu>li:not(.oshmenu-li-separator),ul.osvmenu>li:not(.osvmenu-separator)'), function (i, val) {
        var l = jQuery(val); var s = l.children('span'); if (s.length == 0) return;
        var t = l.find('span.t').last(); l.children('a').append(t.html(t.text()));
        s.remove();
    });
});/* end Page */

/* begin Box, Sheet */

function artFluidSheetComputedWidth(percent, minval, maxval) {
    percent = parseInt(percent);
    var val = document.body.clientWidth / 100 * percent;
    return val < minval ? minval + 'px' : val > maxval ? maxval + 'px' : percent + '%';
}/* end Box, Sheet */

/* begin Menu */
jQuery(function() {
    jQuery.each(jQuery('ul.oshmenu>li:not(:last-child)'), function(i, val) {
        jQuery('<li class="oshmenu-li-separator"><span class="oshmenu-separator"> </span></li>').insertAfter(val);
    });
    if (!jQuery.browser.msie || parseInt(jQuery.browser.version) > 6) return;
    jQuery.each(jQuery('ul.oshmenu li'), function(i, val) {
        val.j = jQuery(val);
        val.UL = val.j.children('ul:first');
        if (val.UL.length == 0) return;
        val.A = val.j.children('a:first');
        this.onmouseenter = function() {
            this.j.addClass('oshmenuhover');
            this.UL.addClass('oshmenuhoverUL');
            this.A.addClass('oshmenuhoverA');
        };
        this.onmouseleave = function() {
            this.j.removeClass('oshmenuhover');
            this.UL.removeClass('oshmenuhoverUL');
            this.A.removeClass('oshmenuhoverA');
        };

    });
});

/* end Menu */

/* begin Layout */
jQuery(function () {
     var c = jQuery('div.oscontent');
    if (c.length !== 1) return;
    var s = c.parent().children('.oslayout-cell:not(.oscontent)');
    jQuery(window).bind('resize', function () {
        c.css('height', 'auto');
        var r = jQuery(window).height() - jQuery('#osmain').height();
        if (r > 0) c.css('height', r + c.height() + 'px');
    });

    if (jQuery.browser.msie && parseInt(jQuery.browser.version) < 8) {

        jQuery(window).bind('resize', function () {
            var w = 0;
            c.hide();
            s.each(function () { w += this.clientWidth; });
            c.w = c.parent().width(); c.css('width', c.w - w + 'px');
            c.show();
        })

        var r = jQuery('div.oscontent-layout-row').each(function () {
            this.c = jQuery(this).children('.oslayout-cell:not(.oscontent)');
        });

        jQuery(window).bind('resize', function () {
            r.each(function () {
                if (this.h == this.clientHeight) return;
                this.c.css('height', 'auto');
                var r = jQuery(window).height() - jQuery('#osmain').height();
                this.h = this.clientHeight;
                if (r > 0) this.h += r;
                this.c.css('height', this.h + 'px');
            });
        });
    }

    var g = jQuery('.oslayout-glare-image');
    jQuery(window).bind('resize', function () {
        g.each(function () {
            var i = jQuery(this);
            i.css('height', i.parents('.oslayout-cell').height() + 'px');
        });
    });

    jQuery(window).trigger('resize');
});/* end Layout */

/* begin VMenu */
jQuery(function() {
    jQuery('ul.osvmenu li').not(':first').before('<li class="osvsubmenu-separator"><span class="osvsubmenu-separator-span"> </span></li>');
    jQuery('ul.osvmenu > li.osvsubmenu-separator').removeClass('osvsubmenu-separator').addClass('osvmenu-separator').children('span').removeClass('osvsubmenu-separator-span').addClass('osvmenu-separator-span');
    jQuery('ul.osvmenu > li > ul > li.osvsubmenu-separator:first-child').removeClass('osvsubmenu-separator').addClass('osvmenu-separator').addClass('osvmenu-separator-first').children('span').removeClass('osvsubmenu-separator-span').addClass('osvmenu-separator-span');
});  /* end VMenu */

/* begin VMenuItem */
jQuery(function() {
    jQuery('ul.osvmenu a').click(function() {
        if (this.href.replace('#', '') == window.location.href.replace('#', '')) {
            var a = jQuery(this);
            a.parents('ul.osvmenu').find("ul, a").removeClass('active');
            a.parent().children('ul').addClass('active');
            a.parents('ul.osvmenu ul').addClass('active');
            a.parents('ul.osvmenu li').children('a').addClass('active');
        }
    });
});
/* end VMenuItem */

/* begin Button */
function artButtonSetup(className) {
    jQuery.each(jQuery("a." + className + ", button." + className + ", input." + className), function (i, val) {
        var b = jQuery(val);
        if (!b.parent().hasClass('osbutton-wrapper')) {
            if (b.is('input')) b.val(b.val().replace(/^\s*/, '')).css('zoom', '1');
            if (!b.hasClass('osbutton')) b.addClass('osbutton');
            jQuery("<span class='osbutton-wrapper'><span class='osbutton-l'> </span><span class='osbutton-r'> </span></span>").insertBefore(b).append(b);
            if (b.hasClass('active')) b.parent().addClass('active');
        }
        b.mouseover(function () { jQuery(this).parent().addClass("hover"); });
        b.mouseout(function () { var b = jQuery(this); b.parent().removeClass("hover"); if (!b.hasClass('active')) b.parent().removeClass('active'); });
        b.mousedown(function () { var b = jQuery(this); b.parent().removeClass("hover"); if (!b.hasClass('active')) b.parent().addClass('active'); });
        b.mouseup(function () { var b = jQuery(this); if (!b.hasClass('active')) b.parent().removeClass('active'); });
    });
}
jQuery(function() { artButtonSetup("osbutton"); });

/* end Button */



function artInsertSidebarBlocks() {
    if (jQuery("body#layout").length > 0) return true;
    jQuery("div.widget").each( function(i, w) {
        if (w.id == 'Navbar1')  return true;
        if (w.id == 'Header1')  return true;
        if (w.id == 'Blog1')    return true;
        
        
        if (w.id == 'LinkList99')    return true;
        if (w.id == 'LinkList98')    return true;
        if (w.id == 'LinkList97')    return true;
        if (w.id == 'PageList98')    return true;
        if (w.id == 'PageList99')    return true;
        if (w.id == 'Text99')        return true;
        if (w.id == 'BlogArchive99') return true;
        
        var widget = jQuery(w);
        if ( (widget.hasClass('Gadget') || widget.hasClass('Followers')) && jQuery.browser.opera) {
            return true;
        }
        
        var widgetTitle = jQuery("h2", widget).text();
        jQuery("h2", widget).remove();
        var widgetContent = widget.html();

        if (widgetContent.indexOf('googlesyndication.com') > -1) return true;
        if (widgetContent.indexOf('statcounter.com/counter/counter_xhtml.js') > -1) return true;
        if (widgetContent.indexOf('bravenet.com/counter/code.php') > -1) return true;
                
        var startBlock        = '<div class="osblock" id="osblock-'+w.id+'"><div class="osblock-tl"></div><div class="osblock-tr"></div><div class="osblock-bl"></div><div class="osblock-br"></div><div class="osblock-tc"></div><div class="osblock-bc"></div><div class="osblock-cl"></div><div class="osblock-cr"></div><div class="osblock-cc"></div><div class="osblock-body">';
        var startBlockHeader  = '<div class="osblockheader"><div class="l"></div><div class="r"></div><h3 class="t">';
        var endBlockHeader    = '</h3></div>';
        var startBlockContent = '<div class="osblockcontent"><div class="osblockcontent-tl"></div><div class="osblockcontent-tr"></div><div class="osblockcontent-bl"></div><div class="osblockcontent-br"></div><div class="osblockcontent-tc"></div><div class="osblockcontent-bc"></div><div class="osblockcontent-cl"></div><div class="osblockcontent-cr"></div><div class="osblockcontent-cc"></div><div class="osblockcontent-body">';
        var endBlockContent   = '</div></div>';
        var endBlock          = '</div></div>';
        
        widgetContent =  startBlockContent + widgetContent + endBlockContent;
        if (widgetTitle && true){
            widgetContent =  startBlockHeader + widgetTitle + endBlockHeader + widgetContent;
        }
        jQuery(widget).html( startBlock + widgetContent + endBlock );
        
        if (widget.hasClass('Subscribe')) {
            widget.css({'position': 'relative', 'z-index': '2'})
        }
        
    });
}
jQuery(function() { artInsertSidebarBlocks(); });


function artCheckNavBar(){
    if (jQuery("#navbar")) {
        if (!false) {
            jQuery("#navbar").css("display", "none");
        }
    }
}

function artFixFooterMenu(footerText){
    if (jQuery("#LinkList98").length > 0) {
        var widgetText = jQuery("#LinkList98").html();
        jQuery("#LinkList98").html(widgetText.replace("| |", ""));
    } else {
        var el = jQuery("#Text99 > div.widget-content");
        if (el.html() == '\n<br><br>\n') {
           var dt = new Date();
           el.html(footerText.replace("%YEAR%", dt.getFullYear()));
        } else {
            el.html(el.html() + "<br />");
        }
    }
}


function artFixPostHeaders(){
    jQuery("div.ospostmetadataheader").each( function(i) {
        if (jQuery("div, h2", this).length == 0) jQuery(this).css("display", "none");
    });
}
jQuery(function() { artFixPostHeaders(); });


function artHeaderWidget(){
    if (showHeader==null||showHeader==false){
        jQuery("#Header1").css("display", "none");
    }
}
jQuery(function() { artHeaderWidget(); });


function artVMenuWidget(){
    if (showVMenu==null||showVMenu==false){
        jQuery("#LinkList97").css("display", "none");
        jQuery("#BlogArchive99").css("display", "none");
        jQuery("#PageList99").css("display", "none");
    }
}
jQuery(function() { artVMenuWidget(); });


function artFixPostFooters(){
    jQuery("div.ospostmetadatafooter > div.ospostfootericons").each( function(i) {
        if (jQuery("img, a", this).length == 0) jQuery(this).parent("div.ospostmetadatafooter").css("display", "none");    
    });
}
jQuery(function() { artFixPostFooters(); });


var showHomePage = false;
function artFixTopMenu(){
    if (jQuery("#LinkList99").length == 0){
        var navSection = jQuery("#navsection");
        if (navSection.length > 0){
            if (showHomePage) {
                if (window.location == homePageLink) 
                    var tmpstr = '<a href="'+homePageLink+'" class="active">';
                else
                    var tmpstr = '<a href="'+homePageLink+'">';
                navSection.html('<div><div class="osnav-l"></div><div class="osnav-r"></div><div class="osnav-outer"><div class="osnav-wrapper"><div class="osnav-inner"><div class="osnav-center"><ul class="oshmenu"><li>'+tmpstr+'<span class="l"></span><span class="r"></span><span class="t">'+homePageName+'</span></a></li></ul></div></div></div></div></div>');
            } else {
                navSection.html('<div><div class="osnav-l"></div><div class="osnav-r"></div><div class="osnav-outer"><div class="osnav-center"></div></div></div>');
            }
        }
    }
}


function artDisplayTopMenu(menuitems) {
    var subList1 = jQuery("");
    var subList2 = jQuery("");
    var subList3 = jQuery("");

    for (var i=0; i < menuitems.length; i++) {
        var itemname = menuitems[i][0];
        var itemlink = menuitems[i][1];
        if (itemlink == "http://./") itemlink = "#";
         
        if (itemname.charAt(0) != "-"){
            if (subList3.length != 0){
                jQuery("li:last", subList2).append(subList3);
                subList3 = jQuery("");
            }
            if (subList2.length != 0){
                jQuery("li:last", subList1).append(subList2);
                subList2 = jQuery("");
            }
            if (subList1.length != 0){
                jQuery("ul.oshmenu li:last").append(subList1);
                subList1 = jQuery("");
            }
            if (window.location == itemlink) 
                jQuery("ul.oshmenu").append('<li><a href="'+itemlink+'" class="active"><span class="l"></span><span class="r"></span><span class="t">'+itemname+'</span></a></li>');
            else
                jQuery("ul.oshmenu").append('<li><a href="'+itemlink+'"><span class="l"></span><span class="r"></span><span class="t">'+itemname+'</span></a></li>');
        } else {
            if (itemname.charAt(2) == "-"){
                if (subList3.length == 0 ) subList3 = jQuery("<ul></ul>");
                subList3.append('<li><a href="'+itemlink+'">'+itemname.substr(3,itemname.length)+'</a></li>');
            } else if (itemname.charAt(1) == "-"){
                if (subList3.length != 0){
                    jQuery("li:last", subList2).append(subList3);
                    subList3 = jQuery("");
                }
                if (subList2.length == 0 ) subList2 = jQuery("<ul></ul>");
                subList2.append('<li><a href="'+itemlink+'">'+itemname.substr(2,itemname.length)+'</a></li>');
            } else if (itemname.charAt(0) == "-"){
                if (subList3.length != 0){
                    jQuery("li:last", subList2).append(subList3);
                    subList3 = jQuery("");
                }
                if (subList2.length != 0){
                    jQuery("li:last", subList1).append(subList2);
                    subList2 = jQuery("");
                }
                if (subList1.length == 0 ) subList1 = jQuery("<ul></ul>");
                subList1.append('<li><a href="'+itemlink+'">'+itemname.substr(1,itemname.length)+'</a></li>');
            }
        }
    }
    if (subList3.length != 0){
        jQuery("li:last", subList2).append(subList3);
        subList3 = jQuery("");
    }
    if (subList2.length != 0){
        jQuery("li:last", subList1).append(subList2);
        subList2 = jQuery("");
    }
    if (subList1.length != 0){
        jQuery("ul.oshmenu li:last").append(subList1);
        subList1 = jQuery("");
    }
}


function artDisplayVMenu(vmenuitems) {

    if (jQuery("ul.osvmenu").children().length > 0) return true;

    var subList1 = jQuery("");
    var subList2 = jQuery("");
    var subList3 = jQuery("");

    for (var i=0; i < vmenuitems.length; i++) {
        var itemname = vmenuitems[i][0];
        var itemlink = vmenuitems[i][1];
        if (itemlink == "http://./") itemlink = "#";
         
        if (itemname.charAt(0) != "-"){
            if (subList3.length != 0){
                jQuery("li:last", subList2).append(subList3);
                subList3 = jQuery("");
            }
            if (subList2.length != 0){
                jQuery("li:last", subList1).append(subList2);
                subList2 = jQuery("");
            }
            if (subList1.length != 0){
                jQuery("ul.osvmenu li:last").append(subList1);
                subList1 = jQuery("");
            }
            if (window.location == itemlink) 
                jQuery("ul.osvmenu").append('<li><a href="'+itemlink+'" class="active"><span class="l"></span><span class="r"></span><span class="t">'+itemname+'</span></a></li>');
            else
                jQuery("ul.osvmenu").append('<li><a href="'+itemlink+'"><span class="l"></span><span class="r"></span><span class="t">'+itemname+'</span></a></li>');
        } else {
            if (itemname.charAt(2) == "-"){
                if (subList3.length == 0 ) subList3 = jQuery("<ul></ul>");
                if (window.location == itemlink)
                    subList3.append('<li><a href="'+itemlink+'" class="active">'+itemname.substr(3,itemname.length)+'</a></li>');
                else
                    subList3.append('<li><a href="'+itemlink+'">'+itemname.substr(3,itemname.length)+'</a></li>');
            } else if (itemname.charAt(1) == "-"){
                if (subList3.length != 0){
                    jQuery("li:last", subList2).append(subList3);
                    subList3 = jQuery("");
                }
                if (subList2.length == 0 ) subList2 = jQuery("<ul></ul>");
                if (window.location == itemlink)
                    subList2.append('<li><a href="'+itemlink+'" class="active">'+itemname.substr(2,itemname.length)+'</a></li>');
                else
                    subList2.append('<li><a href="'+itemlink+'">'+itemname.substr(2,itemname.length)+'</a></li>');
            } else if (itemname.charAt(0) == "-"){
                if (subList3.length != 0){
                    jQuery("li:last", subList2).append(subList3);
                    subList3 = jQuery("");
                }
                if (subList2.length != 0){
                    jQuery("li:last", subList1).append(subList2);
                    subList2 = jQuery("");
                }
                if (subList1.length == 0 ) subList1 = jQuery("<ul></ul>");
                if (window.location == itemlink)
                    subList1.append('<li><a href="'+itemlink+'" class="active">'+itemname.substr(1,itemname.length)+'</a></li>');
                else
                    subList1.append('<li><a href="'+itemlink+'">'+itemname.substr(1,itemname.length)+'</a></li>');
            }
        }
    }
    if (subList3.length != 0){
        jQuery("li:last", subList2).append(subList3);
        subList3 = jQuery("");
    }
    if (subList2.length != 0){
        jQuery("li:last", subList1).append(subList2);
        subList2 = jQuery("");
    }
    if (subList1.length != 0){
        jQuery("ul.osvmenu li:last").append(subList1);
        subList1 = jQuery("");
    }

    if (!true){
        jQuery(".osvmenublockheader").css("display", "none");
    }
    
    var a = jQuery("ul.osvmenu a.active");
    a.parents('ul.osvmenu').find("ul, a").removeClass('active');
    a.parent().children('ul').addClass('active');
    a.parents('ul.osvmenu ul').addClass('active');
    a.parents('ul.osvmenu li').children('a').addClass('active');
    
}


function artFixVMenuArchive(){
    if (jQuery("#osvmenu-archive").length > 0){
        if (!true){
            jQuery(".osvmenublockheader").css("display", "none");
        }
        jQuery("#osvmenu-archive a").each(function(i) {
            if (this.href.replace('#', '') == window.location.href.replace('#', '')) {
                jQuery(this).addClass("active");
            }
        });
        var a = jQuery("#osvmenu-archive a.active");
        a.parents('#osvmenu-archive').find("ul, a").removeClass('active');
        a.parent().children('ul').addClass('active');
        a.parents('#osvmenu-archive ul').addClass('active');
        a.parents('#osvmenu-archive li').children('a').addClass('active');
    }
}


jQuery(function() {
    jQuery(".BlogList").each( function(i) {
        var bl_name = jQuery(this).attr("id");
        jQuery("#" + bl_name + "_show-all").click( function() {
            jQuery("#" + bl_name + "_blogs li").each( function(i) {
                if ( jQuery(this).css("display") == "none") {
                    jQuery(this).css("display", "block");
                    jQuery(this).attr("class", bl_name + "_blogs_hidden");
                    jQuery("#" + bl_name + "_show-all").css("display", "none");
                    jQuery("#" + bl_name + "_show-n").css("display", "block");
                }
            });
        });
        jQuery("#" + bl_name + "_show-n").click(function() {
            jQuery("li." + bl_name + "_blogs_hidden").each( function(i) {
                jQuery(this).css("display", "none");
                jQuery(this).attr("class", "");
                jQuery("#" + bl_name + "_show-all").css("display", "block");
                jQuery("#" + bl_name + "_show-n").css("display", "none");
            });
        });
    });
});

      //]]>